﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ResetPassword.aspx.cs" Inherits="ZhaoPin.Supervisor.ResetPassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center" style="padding-bottom: 10px">
        输入身份证号码：<asp:TextBox ID="tbIdentity" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查找" OnClick="btnSearch_Click" />密码重置为（至少六位)：<asp:TextBox
            ID="tbPassword" runat="server" Text="18171817"></asp:TextBox><asp:RegularExpressionValidator
                ID="RegularExpressionValidator1" runat="server" ErrorMessage="密码不符合要求!" ControlToValidate="tbPassword"
                ValidationExpression="^[^\s]{6,20}$"></asp:RegularExpressionValidator></div>
    <div align="center">
        <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
            EmptyDataText="没有数据" OnRowCommand="gridView_RowCommand">
            <Columns>
                <asp:BoundField DataField="RealName" HeaderText="姓名" SortExpression="RealName" />
                <asp:BoundField DataField="IdentityCardNumber" HeaderText="身份证号码" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="btnReset" runat="server" Text="重置" CommandName="Reset" CausesValidation="true"
                            CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
